﻿using UnityEngine;
using Unity.Collections;
/// <summary>
/// Xlsx表Db表
/// </summary>
[System.Serializable]
public class XlsxDbTable : ScriptableObject
{
    /// <summary>
    /// 表路径
    /// </summary>
    [SerializeField]
    [ReadOnly]
    public string tablePath = string.Empty;

    /// <summary>
    /// 表语言
    /// </summary>
    [SerializeField]
    [ReadOnly]
    public int tableLanguage = 0;

    /// <summary>
    /// 行数据
    /// </summary>
    [SerializeField]
    [ReadOnly]
    public XlsxDbTableRow[] rows;
}

/// <summary>
/// 数据库表行
/// </summary>
[System.Serializable]
public class XlsxDbTableRow
{
    /// <summary>
    /// xlsx表行索引
    /// </summary>
    [SerializeField]
    [ReadOnly]
    public int xlsxRowIndex;

    /// <summary>
    /// xlsx表无主键唯一标识
    /// </summary>
    [SerializeField]
    [ReadOnly]
    public int noPKUniqueId;

    /// <summary>
    /// xlsx表key
    /// </summary>
    [SerializeField]
    [ReadOnly]
    public SFSerializdata key;

    /// <summary>
    /// 数据
    /// </summary>
    [SerializeField]
    [ReadOnly]
    public SFSerializdataOneArray data;    
}
